/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.metadata.lom;

import br.ufrgs.inf.prav.interop.metadata.lom.technical.InstallationRemarks;
import br.ufrgs.inf.prav.interop.metadata.lom.technical.Technical;
import net.sf.jColtrane.annotations.args.Body;
import net.sf.jColtrane.annotations.args.CurrentBranch;
import net.sf.jColtrane.annotations.methods.EndElement;
import net.sf.jColtrane.annotations.methods.StartDocument;
import net.sf.jColtrane.annotations.methods.StartElement;

/**
 *
 * @author Fernando
 */
public class LomReader {

    private OBAA lom;

    private Technical technical;
    private InstallationRemarks installationRemarks;

    public LomReader(OBAA lom){
        this.lom = lom;
    }

    @StartDocument
    public void startDoc(){
        lom = new OBAA();
    }

    /**
     * Technical Area
     */

    @StartElement(tag="technical")
    public void startTechnical(){
        technical = new Technical();
    }
//    @EndElement(tag="format")
//    public void startFormat(@Body String body){
//        technical.setFormat(body);
//    }
//    @EndElement(tag="size")
//    public void startSize(@Body String body){
//        technical.setSize(body);
//    }
//    @EndElement(tag="location")
//    public void startLocation(@Body String body){
//        technical.setLocation(body);
//    }
//
//
//    @StartElement
//    public void startInstallationRemarks(){
//        installationRemarks = new InstallationRemarks();
//        technical.setInstallationRemarks(installationRemarks);
//    }



    @StartElement
    public void startTechnical(@CurrentBranch String currentBranch){

    }

    

    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    // </editor-fold>

}
